package Thuchanh;

import java.util.Scanner;

public class Nhanvien_sell extends Nhanvien_class {

	

	private float hoahong;
	private float soluonghangban;
	public Nhanvien_sell(String ten, float luong, float bacluong, float hoahong,float soluongbanhang) {
		super(ten, luong, bacluong);
	}
	public void Nhapsell(){
		super.Nhap();
		System.out.println("nhap thong tin nhan vien: cell");
		Scanner sc = new Scanner(System.in);
		System.out.println("nhap hoahong:" +this.hoahong);
		this.hoahong = sc.nextFloat();
		System.out.println("nhap lsoluonghangban:" +this.soluonghangban);
		this.soluonghangban = sc.nextFloat();
		
	}
		
	public float tinhluong() {
		return (this.bacluong * this.luong)
				+ (this.hoahong * this.soluonghangban);
	}
	
	public void Xuatsell() {
		super.Xuat();
		System.out.println("hoahong: "+this.hoahong);
		System.out.println("soluongban: "+this.soluonghangban);
		System.out.println("thuc lanh: "+tinhluong());
		
	}

	


}
